<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Sign in</title>         
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
        </div>
        <div class="body">
            <h1>Sign in</h1>
            <g:if test="${flash.message}">
            	<div class="message">${flash.message}</div>
            </g:if>
			
			<p>
                 Welcome to Grails Camelot. Please login below or 
                  <g:link action="register">register here</g:link>.
             </p>        
             <g:form action="handleLogin">
                     <p>
                         <label for="login">Login name:</label>
                         <input type="text" name="name" />
                     </p>
                     <p>
                         <label for="password">Password:</label>
                         <input type="password" name="password" />
                     </p>
                    <input class="button" type="submit" value="Sign in" />
             </g:form>
        </div>
    </body>
</html>
